<%@ page import="app.AppRemoteConnector" %>
<%@ page import="com.alibaba.fastjson.JSONArray" %>
<%@ page import="com.alibaba.fastjson.JSON" %>
<%@ page import="org.mvel2.util.Make" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.LinkedHashMap" %>
<%@ page import="webserver.HTMLMaker" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <style>
            .ON {
                background-color: green;
            }

            .OFF {
                background-color: red;
            }
        </style>
        <title>自成长软件上下文管理与保障平台</title>
    </head>
    <body>
        <jsp:scriptlet>
            AppRemoteConnector conn = (AppRemoteConnector) application.getAttribute("conn"); HTMLMaker maker = (HTMLMaker) application.getAttribute("maker");
        </jsp:scriptlet>
        <b>传感器（Sensor）资源</b>
        <jsp:expression>
            maker.makeTable("{\"id\":\"编号\",\"sensor_name\":\"名称\",\"state\":\"状态\",\"apps\":\"应用\",\"value\":\"读数\"}", conn.raw("{\"api\":\"get_all_sensor_info_and_data\"}"))
        </jsp:expression>
        <a href="index.jsp">返回主界面</a>
    </body>
</html>